/*
 * Journee.h
 *
 *  Created on: 16 mai 2012
 *      Author: Alexis FOERSTER
 */

#ifndef JOURNEE_H_
#define JOURNEE_H_

#include "Match.h"
#include <QList>
#include <QSharedPointer>

class Journee
{
public:
    Journee();
    Journee(const int & numero, const QList<QSharedPointer<Match> > & listeMatchs = QList<QSharedPointer<Match> >());
    virtual ~Journee();

    const int & getNumero() const;
    const QList<QSharedPointer<Match> > & getListeMatchs() const;
    void setNumero(const int & numero);
    void setListeMatchs(const QList<QSharedPointer<Match> > & listeMatchs);

    void clear();
    bool equals(const Journee & journee);
    bool ajouterMatch(const QSharedPointer<Match> & match);
    bool supprimerMatch(const QSharedPointer<Match> & match);
    bool modifierMatch(const QSharedPointer<Match> & matchOriginal, const QSharedPointer<Match> & matchFinal);

private:
    int numero;
    QList<QSharedPointer<Match> > listeMatchs;
};

#endif /* JOURNEE_H_ */
